# 此文件只打包镜像，不发布代码
FROM centos:centos7.9.2009

# 镜像作者
MAINTAINER yangyifan
ENV TZ=Asia/Shanghai
ENV PYTHONIOENCODING=utf-8
ENV TIME_ZONE Asia/Shanghai

RUN ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime


RUN yum install -y cronie

RUN yum install -y python36
RUN ln -sf /usr/bin/python3.6 /usr/bin/python
ENV PYTHONPATH=/usr/bin/python3.6:$PYTHONPATH

RUN pip3 install tqdm numpy pymysql==1.0.2 pymssql==2.2.11 elasticsearch==6.3.1  pandas -i https://mirrors.aliyun.com/pypi/simple/
RUN pip3 install requests -i https://mirrors.aliyun.com/pypi/simple/

ADD startup.sh startup.sh
RUN   chmod +x /startup.sh

ENTRYPOINT  /startup.sh